#!/bin/bash


#########   FUNCTIONS ###############

convertPng2Jpg(){
    for l in $@;
    do
        echo $l ${l%.png}.jpg
        magick $l ${l%.png}.jpg
    done
}

# fbd - delete git branch (including remote branches)
fbd() {
  local branches branch
  branches=$(git for-each-ref --count=30 --sort=-committerdate refs/heads/ --format="%(refname:short)") &&
  branch=$(echo "$branches" | fzf --multi ) &&
  git branch -D $(echo "$branch" | sed "s/.* //" | sed "s#remotes/[^/]*/##")
}

vimlog () {
	mkdir -p ~/Documents/logs/
	vim ~/Documents/logs/${1}.txt
}

ff () {
	find . -type f|grep  "${1}"
}
#####################################



